import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {ConfigureComponent} from './category/configure/configure.component';
import {BannerComponent} from './banner/banner.component';
import {DailytaskComponent} from './dailytask/dailytask.component';
import {AddComponent} from './banner/add/add.component';
import {TaskComponent} from './task/task.component';
import {ExamineComponent} from './examine/examine.component';
import {WithdrawComponent} from './withdraw/withdraw.component';
import {SpreadComponent} from './spread/spread.component';
import {CustomerComponent} from './customer/customer.component';
import {DiscoveryComponent} from './discovery/discovery.component';
import {IntegralComponent} from './integral/integral.component';
import {KeywordComponent} from './keyword/keyword.component';
import {RobotComponent} from './robot/robot.component';
import {PermissionComponent} from './permissions/permission/permission.component';
import {SystemComponent} from './system/system.component';

export const routes: Routes = [
  {
    path: 'permissions',
    component: PermissionComponent,
    children: [],
  },
  {
    path: 'category/configure',
    component: ConfigureComponent,
    children: []
  },
  {
    path: 'activity',
    component: BannerComponent,
    children: [],
  },
  {
    path: 'activity/add',
    component: AddComponent,
    children: [],
  },
  {
    path: 'dailytask',
    component: DailytaskComponent,
    children: []
  },
  {
    path: 'taskmanage/list',
    component: TaskComponent,
    children: []
  },
  {
    path: 'examine/list',
    component: ExamineComponent,
    children: []
  },
  {
    path: 'integral/list',
    component: IntegralComponent,
    children: []
  },
  {
    path: 'withdraw/list',
    component: WithdrawComponent,
    children: []
  },
  {
    path: 'spread/list',
    component: SpreadComponent,
  },
  {
    path: 'customer',
    component: CustomerComponent,
  },
  {
    path: 'discovery',
    component: DiscoveryComponent,
  },
  {
    path: 'keyword/list',
    component: KeywordComponent,
  },
  {
    path: 'robot',
    component: RobotComponent
  },
  {
    path: 'system',
    component: SystemComponent,
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
